package com.study.io;

import java.io.InputStream;

public class Resources {

    public static InputStream getResourceAsStream(String path) {
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }

    public static Class getClass(String type) throws ClassNotFoundException {
        return type != null ? Class.forName(type) : null;
    }
}
